package cn.zhy.ocean.busi.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author ocean
 * @create 2018/12/8
 */
@RefreshScope
@RestController
public class BusiController {
    @Value("${db.url}")
    private String url;

    @GetMapping("geturl")
    public String getUrl(){
        return url;
    }
}
